package me.dwliu.lab.demo.codeview.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 登陆页面
 *
 * @author liudw
 * @date 2020/7/8 11:54
 **/
@Controller
public class CustomLoginController {

    @GetMapping("/auth/login")
    public String loginPage(Model model) {

        model.addAttribute("loginProcessUrl", "/auth/authorize");

        return "login";
    }
}
